<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
textarea {
	resize: none;
}
span{
	font-size:20px;
	font-style: italic;
	color: #ff0000;
}
</style>
</head>
<body>
	<div>
		<div>
			<form action="add" method="post">
				<ul>
					<li>작성자</li>
					<li><input type="text" name="writer" width="100"></li>
					<li>제목</li>
					<li><input type="text" name="title" width="100"></li>
					<li>내용</li>
					<li><textarea cols="30" rows="5" name="content"></textarea></li>
					<li><input type="submit" value="글쓰기" name="submit"></li>
				</ul>
			</form>
		</div>
		<br />

		<div>
			<c:forEach items="${blog }" var="bl">
				<hr>
					<span class="a">제목</span> : ${bl.title } / <span class="a">작성자</span> : ${bl.writer }
					<br>
					<span class="a">내용</span> : ${bl.content }
			</c:forEach>
		</div>
	</div>

</body>
</html>